﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;

namespace Teein.Proxy.Bot.Model
{
    public class SiteInfo
    {
        private ObjectId m_PID;

        [BsonId]
        public ObjectId PID
        {
            get
            {
                if (m_PID == ObjectId.Empty)
                {
                    m_PID = ObjectId.GenerateNewId();
                }
                return m_PID;
            }
            set
            {
                m_PID = value;
            }
        }

        public string Url { get; set; }
        public string Name { get; set; }
    }
}
